<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .radio-1 {
        width: 980px;
        margin: 0 auto;
        padding: 3% 0;
        background-color: #3cc;
        text-align: center;
      }
      .radio-1 input {
        display: none;
      }
      .radio-1 label {
        display: inline-block;
        width: 28px;
        height: 28px;
        position: relative;
        background-color: #ffffff;
        border: 1px solid #cccccc;
        margin-left: 10px;
        border-radius: 100%;
        cursor: pointer;
      }
      .radio-1 label:after {
        width: 20px;
        height: 20px;
        top: 4px;
        left: 4px;
        position: absolute;
        background-color: #666666;
        border-radius: 100%;
        content: "";
        transform: scale(0);
        transition: all 0.2s ease-in;
      }
      .radio-1 input:checked + label:after {
        transform: scale(1);
        transition: all 0.2s ease-in;
      }
      .radio-1 input:checked + label {
        background-color: #eee;
        transition: all 0.2s ease-out;
      }
      .radio-2 {
        width: 980px;
        margin: 0 auto;
        padding: 3% 0;
        text-align: center;
        background-color: #fc9;
      }
      .radio-2 input {
        display: none;
      }
      .radio-2 label {
        width: 28px;
        height: 28px;
        border: 1px solid #ccc;
        border-radius: 50%;
        overflow: hidden;
        margin-left: 10px;
        background-color: #fff;
        display: inline-block;
        position: relative;
        cursor: pointer;
      }
      .radio-2 label:after {
        content: "";
        width: 20px;
        height: 20px;
        position: absolute;
        top: 4px;
        left: 4px;
        border-radius: 40%;
        background-color: #666666;
        transform-origin: -2px 50%;
        transform: rotate(-180deg);
        transition: all 0.2s ease-out;
      }
      .radio-2 input:checked + label:after {
        transform: rotate(0deg);
        transition: all 0.2s ease-out;
      }
      .radio-2 input:checked + label {
        background-color: #eee;
        transition: all 0.2s ease-out;
      }
    </style>
  </head>
  <body>
    <div class="radio-1">
      <input type="radio" name="radio-1" id="radio-1-1" checked="checked" />
      <label for="radio-1-1"></label>

      <input type="radio" name="radio-1" id="radio-1-2" />
      <label for="radio-1-2"></label>

      <input type="radio" name="radio-1" id="radio-1-3" />
      <label for="radio-1-3"></label>
    </div>
    <div class="radio-2">
      <input type="radio" name="radio-2" id="radio-2-1" checked="checked" />
      <label for="radio-2-1"></label>

      <input type="radio" name="radio-2" id="radio-2-2" />
      <label for="radio-2-2"></label>

      <input type="radio" name="radio-2" id="radio-2-3" />
      <label for="radio-2-3"></label>
    </div>
  </body>
</html>
